const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer:{
    port: 80,
    host: '0.0.0.0',
    https: false,
    client: {
      webSocketURL: 'ws://0.0.0.0:80/ws',
    },
    headers: {
      'Access-Control-Allow-Origin': '*',
    }
  },
  configureWebpack: {
    resolve: {
      fallback: {
        "crypto": require.resolve("crypto-browserify"),
        'stream': require.resolve('readable-stream')
      }
    }
  },
})
